package com.uchedao.seller.util;

import android.util.Log;

import com.uchedao.seller.config.BuildConfig;


/**
 * 系统日志
 * Created by zhengxizhen on 15/8/10.
 */
public class LogUtil {
    public static boolean isDebug = BuildConfig.LEO_DEBUG;

    private static String TAG = "273Base";

    public static void v(String tag, Object v) {
        if (isDebug && v != null) {
            Log.v(tag, v.toString());
        }
    }

    public static void v(Object v) {
        v(TAG, v);
    }

    public static void d(String tag, Object d) {
        if (isDebug && d != null) {
            Log.d(tag, d.toString());
        }
    }

    public static void d(String d) {
        d(TAG, d);
    }

    public static void e(String tag, Object e) {
        if (isDebug && e != null) {
            Log.e(tag, e.toString());
        }
    }

    public static void e(Object e) {
        e(TAG, e);
    }

}
